package org.mysfit.ctp4j.infra.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.mysfit.ctp4j.infra.entity.FkData;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * fk Mapper 接口
 * </p>
 *
 * @author long.gf
 * @since 2022-12-02
 */
public interface FkDataMapper extends BaseMapper<FkData> {

	void insertFK(@Param("fid") String fid, @Param("startTime") String startTime, @Param("endTime") String endTime);

	void insert5FK(@Param("fid") String fid, @Param("startTime") String startTime, @Param("endTime") String endTime);

	void insert15FK(@Param("fid") String fid, @Param("startTime") String startTime, @Param("endTime") String endTime);

	List<FkData> getLastFkData(String fid, int count);

	List<FkData> getLast5FkData(String fid, int count);

	List<FkData> getLast15FkData(String fid, int count);

}
